Results 1 to 3 of 3

Thread: List selector doesnt become visiable

  1. #1
    Join Date
    Oct 2009
    Posts
    25
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Question List selector doesnt become visiable

    Hi,

    I wrote this class:


    class MyWidget: public QWidget
    {
    Q_OBJECT
    public:
    MyWidget(char *items[], int nitems,QWidget *parent);
    int Is_Clicked;

    private slots:
    void itemClicked(QListWidgetItem *item);

    private:
    QListWidget *m_myListWidget;

    };

    Which is a list selector widget, and i want to show it with the command show()
    in my main function.
    It does not react to his show function,
    however if i put another widget afterwards (let say a text input widget)
    its shown on screen...

    Is there any option to see it right after the list selector show function?

    thank you

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: List selector doesnt become visiable

    How are you calling it ?

  3. #3
    Join Date
    Oct 2009
    Posts
    25
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: List selector doesnt become visiable

    I call it in another class that use this class,
    And im calling it (after the declare it) with the name of the class var dot show().

    Name_Of_Var->show();

    what im doing wrong?

Similar Threads

  1. QFtp hidden files/folder's list
    By jay in forum Qt Programming
    Replies: 1
    Last Post: 26th December 2008, 12:12
  2. Replies: 2
    Last Post: 19th September 2008, 05:21
  3. Single slot for multiple list boxes
    By Sheetal in forum Qt Programming
    Replies: 1
    Last Post: 15th April 2008, 06:53
  4. Replies: 1
    Last Post: 22nd October 2007, 02:04
  5. QComboBox drop list button events
    By maird in forum Qt Programming
    Replies: 5
    Last Post: 20th October 2007, 19:25

Tags for this Thread

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.