Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • 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!
  • Help! is there errors in codes copied from book ?

    8
    0 Votes
    8 Posts
    3k Views
    A
    Samples in books often ommit includes for classes provided by well-known libraries for the sake of brevity. Often, you can download the samples as working source code, and there the needed includes will be there.
  • Qt static with MYSQL

    5
    0 Votes
    5 Posts
    4k Views
    B
    I have compiled qt in different ways entire night with no success. I guess I must use all qt army of dll for my project :)
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • How to read the color of an rectitem

    6
    0 Votes
    6 Posts
    3k Views
    A
    [quote author="phani438" date="1322222885"]it is showing rgb format ...how can it convet it into name format(ex:blue,green)... [/quote] Other than building your own table of rgb->name mappings, you can not.
  • Mouse Double-Click Event

    6
    0 Votes
    6 Posts
    10k Views
    T
    I'm using Windows 7.
  • QKeySequence. How to re-define standard keyboard shotcut?

    6
    0 Votes
    6 Posts
    4k Views
    G
    The shortcut is set in QMdiSubWindowPrivate::createSystemMenu() during the construction of a QMdiSubWindow, I doubt that you can remove it without having to patch Qt libs.
  • How to create push type stream object from a URL.

    4
    0 Votes
    4 Posts
    2k Views
    Q
    They should.
  • Can QEvent setType?

    5
    0 Votes
    5 Posts
    3k Views
    G
    The application deactivate signal is sent, when the application is deactivated - quel surprise! Deactivation works by activating another application (you can see it by the menu bar changing the applications's name). To my knowledge and own user experience this is only possible by terminating the application or by using explicit means like the dock, the app chooser at cmd-tab, spaces or expose. If you close the last window of an app like iCal, iTunes or the Finder that application is still the current app (check the menu bar!). I never heard of an application that can "give away" its active state to another application. Even if it was possible, I as a user would be heavily annoyed by such behavior and I would most probably purge such an app from my disk.
  • Qt QGraphicsScene::drawItems substitute ?

    2
    0 Votes
    2 Posts
    3k Views
    G
    If you look at the docs: [quote] Since Qt 4.6, this function is not called anymore unless the QGraphicsView::IndirectPainting flag is given as an Optimization flag. [/quote] As no other option is stated, I assume, you have to use drawForeground for that. As I looked at the code, I found, that is is still called in QGraphicsScene::render with Qt 4.7.4
  • Serializing QVector of pointers

    4
    0 Votes
    4 Posts
    5k Views
    A
    I would start looking into other solutions as well. Boost::serialize for instance can serialize pointers to objects, and makes sure that you don't serialize the same object more than one time.
  • Pinch Simulation without Multi touch device

    4
    0 Votes
    4 Posts
    4k Views
    R
    You can test multi touch in Qt Simulator for mobile devices. I know it's wierd to test win app in such simulator, but when you haven't any device and it will come up. So you need to press Alt+2 and test your Pinch.
  • Add my Custom Widgets in Qt app through VS 2008

    3
    0 Votes
    3 Posts
    2k Views
    S
    Thanks for our reply. yeah, that's a fundamental mistake. But i figured out the another reason for the problem. I build these widgets in release mode(in the .pro file), but i was building my app in debug mode. So when changed it in debug mode its working fine(ie by creating an object of the Widget ), but in debug mode it can't be installed in Qt Designer!!!
  • My First Program Successfully Built

    13
    0 Votes
    13 Posts
    5k Views
    S
    Volker, Kxyu, Got the point. There is actually no way to pass the QLineEdit pointer (or any other data) into the slot via a connect statement. The only data I can gather inside the slot will be the ones which is passed by the signal signature. So, I've to declare the QLineEdit inside the class itself. I think that resolves the problem at the moment for my code. But as I searched around little bit hard, I got another case which is almost similar to mine "here":http://www.qtcentre.org/threads/27919-Override-a-signal. The only different thing is that, he uses a UI file, which is I'm not clear about. Anyway, I think my problem is resolved as of now. :) Thanks a lot friends.
  • Clicking the dock icon to show finder instead of show the app (Mac)

    11
    0 Votes
    11 Posts
    7k Views
    G
    I'm not sure if it is possible at all to "give away" the application focus other than by closing the last window.