Results 1 to 2 of 2

Thread: Qlist<pixmap> sembolList pass another class only via pointer.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2019
    Posts
    13
    Thanks
    2
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Qlist<pixmap> sembolList pass another class only via pointer.

    I have QPixmaps array QList ,
    mainwindow.h file
    Qt Code:
    1. QList<QPixmap> sembolList;
    To copy to clipboard, switch view to plain text mode 
    mainwindow.cpp file
    Qt Code:
    1. sembolList << QPixmap(":/images/9_maca.png");
    2. sembolList << QPixmap(":/images/10_maca.png");
    3. sembolList << QPixmap(":/images/11_maca.png");
    4. ...
    5. ...
    To copy to clipboard, switch view to plain text mode 
    I want to send another classes (more than one) as constructor parameter sembolList but not instance or copy , only use its adress . in other words , I do not want to take up space in memory. one time create and dynamically use all my class. How to make that?
    Last edited by sevketk; 22nd December 2019 at 16:59.

Similar Threads

  1. Replies: 2
    Last Post: 8th February 2018, 17:11
  2. Replies: 3
    Last Post: 23rd May 2015, 13:57
  3. pass QByteArray as a pointer
    By David_ in forum Newbie
    Replies: 3
    Last Post: 6th December 2012, 21:15
  4. how to pass a QList pointer
    By ehnuh in forum Qt Programming
    Replies: 2
    Last Post: 5th November 2012, 16:30
  5. Replies: 14
    Last Post: 1st December 2009, 20:45

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.