Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • How to use opengl on qt ?

    2
    0 Votes
    2 Posts
    2k Views
    Q
    Maybe using Signals and Slots for timing more preferred?
  • Disabled but selectable Qlistwidgetitem

    8
    0 Votes
    8 Posts
    9k Views
    B
    I did try both of them ... 1) Double click & 2) Two-Pane display ... I just felt that popups are bit unique & different than the 2-pane display in terms of its look and feel... meaning that, user can click anywhere outside the popup window to close it automatically. (not required to click on close button). These kind of UI is something which user might not see very often. Thanks a lot for ur ideas Andre and Volker ... anyways, now that I have both of these UI, let me wait and see which one of these to use & go ahead ;)
  • [Solved]How can I change the mouse cursor to busy state ?

    5
    0 Votes
    5 Posts
    20k Views
    Q
    Is there simpler(standard) way to animate cursor?
  • Unresolved externals when building using custom widget

    4
    0 Votes
    4 Posts
    3k Views
    H
    It works when adding source files to my app.. Must be some problem with the way i created lib file i guess..
  • [SOLVED] How to clear a lineEdit when it is clicked?

    3
    0 Votes
    3 Posts
    6k Views
    L
    [quote author="task_struct" date="1322424422"]Hello, I think "placeholderText":http://doc.qt.nokia.com/latest/qlineedit.html#placeholderText-prop is what you're looking for.[/quote] That's exactly what i want. Thank you a lot! :)
  • [SOLVED] QThread Segfault on Linux

    6
    0 Votes
    6 Posts
    5k Views
    G
    Can you provide us the source of your test app? Also, see the DocNotes at the end of the [[Doc:QNetworkAccessManager]] API docs for same short, yet complete samples on how to use QNAM.
  • Missing Expected Behaviour in Qt Designer

    6
    0 Votes
    6 Posts
    3k Views
    S
    Tobias, Ok, I'll be doing this immediately. Thanks
  • Multithreaded multi-MDI app

    11
    0 Votes
    11 Posts
    5k Views
    A
    [quote author="Volker" date="1322420982"] [quote author="Andre" date="1322415174"]Yes, rendering into a QImage at least is fully supported in a thread. [/quote] Can we use a QPainter on that too? Like this: @ QImage img; QPainter painter(image); painter.drawLine(...); // etc. @ [/quote] You certainly can! André
  • Using compiler switches with Qt Qmake

    4
    0 Votes
    4 Posts
    4k Views
    S
    Volker, Koahnig, It worked. Thank You
  • [SOLVED]Comparison problem

    4
    0 Votes
    4 Posts
    2k Views
    H
    Yeap, i khew it's stupid issue,,, Thing is, it's just make "return" without enter in "if" block. Thanks for attentions.
  • How to check an eventfilter is installed or not?

    10
    0 Votes
    10 Posts
    6k Views
    P
    [quote author="Andre" date="1322395645"]@ class MouseOverTracker: public QObject { Q_OBJECT public: MouseOverTracker(QObject* parent = 0); bool eventFilter(QObject* object, QEvent* event); QWidget* currentHoverWidget() {return m_currentWidget;} private: QWidget* m_currentWidget; } MouseOverTracker::MouseOverTracker() : QObject(parent), m_currentWidget(0) { qApp->installEventFilter(this); } bool MouseOverTracker::eventFilter(QObject* object, QEvent* event) { if (!event || !object) return false; if (event->type() == QEvent::Enter) { m_currentWidget = qobject_cast<QWidget*>(sender); } else if (event->type() == QEvent::Leave) { if (m_currentWidget == object) m_currentWidget = 0; } return false; } @ Note: not tested, directly typed into forum editor. You should be able to get your current widget by creating an instance of the class, and calling currentWidget() on it.[/quote] thank you
  • The opengl window only flashes........

    4
    0 Votes
    4 Posts
    3k Views
    Q
    I`l glad to, but my English is very bad, and i do't think that i can give right explanation search here about function scope(or vision area ) "http://www.cprogramming.com/tutorial.html":http://www.cprogramming.com/tutorial.html "http://www.learncpp.com/":http://www.learncpp.com/ "http://www.cplusplus.com/doc/tutorial/":http://www.cplusplus.com/doc/tutorial/ and of course "http://qt.nokia.com/learning":http://qt.nokia.com/learning
  • Qtplugin is not a valid filename

    2
    0 Votes
    2 Posts
    2k Views
    Q
    Maybe you should ask here "http://sourceforge.net/projects/mumble/":http://sourceforge.net/projects/mumble/
  • Need help in qt-creator!!!

    6
    0 Votes
    6 Posts
    3k Views
    S
    find a c++ book first
  • How i can convert int to QString

    3
    0 Votes
    3 Posts
    65k Views
    S
    Thank you so much,it works
  • 0 Votes
    2 Posts
    2k Views
    S
    From documentation: "QPlainTextEdit works on paragraphs and characters. A paragraph is a formatted string which is word-wrapped to fit into the width of the widget." From your words it seems that your problem is not word-wrapping but something else. You care to elaborate your problem so it is clear what your problem exactly is?
  • Exception mechanism of boost.regex conflicts with QT lib

    6
    0 Votes
    6 Posts
    4k Views
    G
    It does not cure the cause of your problems if you tweak the compiler settings in Creator. Your Qt is still built with gcc 4.4. So either rebuild Qt using gcc 4.6 or build your boost libs using gcc 4.4. Everything else is playing roulette, but not a stable solution. In general, it's almost never a good idea to mix object code built by different releases of a compiler (gcc 4.4 vs 4.6, Visual Studio 2008 vs. 2010, etc.)
  • SVG didn't rendered properly

    3
    0 Votes
    3 Posts
    3k Views
    R
    This SVG didn't opens in any webkit browser and in QWebView: bq. This page contains the following errors: error on line 1 at column 0: Encoding error Below is a rendering of the page up to the first error.
  • Pjsua and readyReadStandardOutput BIG problem

    6
    0 Votes
    6 Posts
    4k Views
    G
    Thanks for that pointer, I didn't know that. This would be handy in cases!
  • Using QWidget::grabMouse() on Mac

    2
    0 Votes
    2 Posts
    3k Views
    N
    I have the same problem. As a workaround I tried to "clue" the mouse to the middle of my window with: cursor().setPos(mapToGlobal(QPoint(width()/2,height()/2))); But since the upgrade to osx lion, this does not work anymore. In fact, the grabMouse() still allows the cursor to "leave" the window. When programming a 3d opengl egoshooter, this it not helpfull at all... we need help!