Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • 0 Votes
    7 Posts
    4k Views
    Y
    Ok. Thanks for your help.
  • Problem with thread

    4
    0 Votes
    4 Posts
    3k Views
    R
    Many thanks for your, help!
  • [Solved] QTableView - keep 1st column fixed size and non-scrollable

    5
    0 Votes
    5 Posts
    7k Views
    A
    This is the link http://doc.qt.nokia.com/latest/itemviews-frozencolumn.html It worked in my application. Thanks
  • [Solved] How do I create subdirectories in Qt Creator?

    5
    0 Votes
    5 Posts
    9k Views
    A
    [quote author="mlong" date="1311704016"]Edit: Wow. Completely didn't see the last half of your last post (or the [Solved] in the title). I guess I got too excited about figuring out the problem. :-) I need to start getting more sleep, I think. [/quote] Haha, it's fine, I do that quite a bit too at times. :D
  • QInputDialog osx bug?

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [Solved] Passing QByteArray to 3rd party function

    6
    0 Votes
    6 Posts
    6k Views
    F
    Good to see you solved it. Note that you're going to have to take into account the endianness of the system when you type-cast. The QDataStream solution passes that responsibility to Qt. You specify that the file data is stored in little endian format (unsigned short i = 1; memory maps to 0x0100), but if you use this solution on a big endian system (unsigned short i = 1; memmaps to 0x0001) you're going to see weird results all over again. I don't know if you're going to run into this, but take note of it in any case.
  • [Solved] QMessageBox with line edit

    5
    0 Votes
    5 Posts
    13k Views
    K
    Super, thanks!
  • [Solved with a workaround] editable/!editable QCombobox with stylesheets

    9
    0 Votes
    9 Posts
    12k Views
    G
    Finally, I solved this issue with a workaround. My guess is that each time a QComboBox gets the editable state, an internal QLineEdit is created, when it gets not editable the QLineEdit is destroyed (test the lineEdit() function to understand). But each time the QLineEdit is created, the stylesheet is lost, I guess beacause it is not saved in the QComboBox widget. So, my workaround has been to reimplement the setEditable(bool editable) function. When editable is true, I reapply the stylesheet to the QComboBox. The stylesheet is accessible by the styleSheet() function, if it has been applied to the specific widget. Otherwise, if it has been globally applied to the QApplication, it can be accessed by including <QApplication> and calling qApp->styleSheet(). This would be worth to be reported as a bug, but I don't know how to do it.
  • Slots not being called in shared library (Mac)

    2
    0 Votes
    2 Posts
    2k Views
    B
    Update: this all seems to work correctly if I build my own Qt libs from sources...
  • QRegExp, perl and Unicode

    4
    0 Votes
    4 Posts
    3k Views
    D
    Because I'm working in PyQt, libpcre is not available. Python native re support also lacks \p\N and has other Unicode deficiencies. However there is a good extension regex package ("regex":http://pypi.python.org/pypi/regex) with rather complete Unicode support. The difficulty that I see as a [Py]Qt newbie is in working on the one hand with a QPlainTextEditor and text cursor objects, and on the other with Python-based regex matching. Constantly crossing between the world of the editor document and the world of Python u"strings" looks like a very fruitful way to create confusion and mistakes. Comment?
  • [merged] qglwidget and layouts problem?

    18
    0 Votes
    18 Posts
    8k Views
    T
    iv written what QT needs to do a basic 3d graphics render but for some reason i just keep getting errors ??? and these errors are just horrid ones that no one can figure out heres what i put i know theres some dots missing but i really dont understand what the point of it is maybe for digits?? Or something whateva but the point is it wont work no matter how many ways i try to do it even with dots! :( maybe because im placing it within some other code?? but that shouldnt effect it at all if the syntax was correct on this piece of code below, its all very confusing and i really would apperciate it if someone could guide me in the right direction and do it in a detailed way :) so i can learn from it @ class opengl : public QGLWidget { Q_OBJECT public: opengl(QWidget *parent) : QGLWidget(parent) {} protected: void initializeGL() { glClearColor(0.0, 0.0, 0.0, 0.0); glEnable(GL_DEPTH_TEST); } void resizeGL(int w, int h) { glViewport(0, 0, (GLint)w, (GLint)h); glFrustum(); } void paintGL() glRotatef(); glMaterialfv(); glBeing(GL_QUADS); glVertex3f(); glEnd(); }; @
  • QLabel cannot display image on other computer

    5
    0 Votes
    5 Posts
    4k Views
    Z
    I have put the whole imageformats plugin folder, the "imageformats" folder, into the program folder and the problem is solved. Thank you very much. p.s.: The images are arbitrary on the harddisk, not included in src. I used a filedialog in code to find the image files.
  • Parsing input and performance of QRegExp

    4
    0 Votes
    4 Posts
    4k Views
    jensen82J
    tgone.start(); does a reset or not? Anyway the distance between 1st ad 2nd run is to big...a bug?
  • [SOLVED]Help on QSplitter

    3
    0 Votes
    3 Posts
    3k Views
    M
    Its working fine...after the usuage of QStackedWidget..... thanks for your valuable input.........
  • Kaspersky detecting Qt Application as threat.

    2
    0 Votes
    2 Posts
    3k Views
    R
    "Kaspersky Lab forum":http://forum.kaspersky.com/index.php?showtopic=175881 says its a It is a behavioral detection!
  • Program Crash on Exit

    10
    0 Votes
    10 Posts
    15k Views
    G
    Hi seg_fault, some general info: The deleting is not due to layouts directly, they just do something for you, that you could also do on your own :-) The magic here is parent/child relationship. All QObject derived classes may have a parent. All widgets have a parent unless they are top level. An QObject derived class deletes all children during it's own destruction. Now comes the layout into the game: The layout reparents the widgets so they have a parent which is responsible for the lifetime of the object. A spacer (which is no widget) belongs to the layout, so the layout deletes it. and a layout belongs to a layout or a widget, so they are also automatically deleted. Summary: Only delete top level items directly, or widgets, you definitely need destructed. They will destroy all child objects implicit.
  • QOCIDriver: unable to create environment

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Web Cam

    2
    0 Votes
    2 Posts
    2k Views
    EddyE
    Hi Seeajay, This is a forum about programming with C++ and the Qt framework. In what way is your question related to that? Do you want to make a program that uses web cam? If not I suggest to use google to search the web for such an app.
  • How to know that a QTcpSocket has no more data comming? [SOLVED]

    3
    0 Votes
    3 Posts
    3k Views
    Y
    Can you please edit the title of this question and place [SOLVED] at the beginning.
  • MFC dialogs in Qt Application

    2
    0 Votes
    2 Posts
    3k Views
    A
    Sorry, when I can be a "CWinApp", I really mean have the entry be WinMain instead of plain ol' main.