Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • Sending a message to a mobile

    3
    0 Votes
    3 Posts
    1k Views
    V
    You can connect to most devices using sockets... it all depends on what you want to do on your client/server and which device is which. Read this http://doc.qt.nokia.com/4.7-snapshot/network-programming.html It may give you some insight on how the communications work with Qt...
  • Save As Dialog on FUSE drive

    1
    0 Votes
    1 Posts
    919 Views
    No one has replied
  • How to dump QWidget into QDataStream?

    2
    0 Votes
    2 Posts
    2k Views
    G
    There is no builtin method for this. You will have to write your own serialization method.
  • QNAM issues with https + openSSL

    4
    0 Votes
    4 Posts
    2k Views
    G
    Of course, it must be 32bit if your application is 32 bit too. One cannot mix 32bit and 64bit code within one running application. You should double check whether the DLLs are really 32bit. I wouldn't be surprised if they are 64bit and just carry the 32 in the name for historical reasons. OpenSSL is a bit, let's say weird, regarding their naming scheme(s).
  • [solved] Unable to connect to MySql

    9
    0 Votes
    9 Posts
    4k Views
    G
    No problem - every forum handles these things different. Once we have the "QnA features":/forums/viewforum/46/ live on the general forums, marking a thread as solved will be much easier.
  • Drawn with a click event

    6
    0 Votes
    6 Posts
    6k Views
    F
    One more question. Is there a way to change the stack order of the rectangles? In other words I'm currently painting the rectangles on the MainWIndow, the problem is that I have a tabWidget which was drawn using Qt Designer and I would like to have the rectangles to be drawn on top because right now the tabWidget is covering the recs. Is this possible or can I draw directly on the tabWidget? Thanks
  • Using C# via ActiveQt on Linux platform

    6
    0 Votes
    6 Posts
    6k Views
    I
    If it is pure C# code, you can try Mono and Qyoto [1], and skip COM and Active* things. [1] http://techbase.kde.org/Development/Languages/Qyoto
  • QImage Format (32 bit to 16 bit)

    12
    0 Votes
    12 Posts
    7k Views
    A
    We don't allow opening multiple topics on the same issue, so I merged in your new topic.
  • Accessing "parent"-property of GraphicsItem fails

    1
    0 Votes
    1 Posts
    882 Views
    No one has replied
  • QTableView resized automatically in a QVBoxLayout

    3
    0 Votes
    3 Posts
    2k Views
    O
    Ok thanks you Jake, but i managed to resolve my problem. In fact, i don't put the table in the good layout because in my program there are several levels of layout. Now it's right !
  • Qtable autoscroll

    2
    0 Votes
    2 Posts
    1k Views
    A
    Did you try the ensureCellVisible() method?
  • QGraphicsRectItem - mapToParent and mapFromParent

    4
    0 Votes
    4 Posts
    4k Views
    D
    If you want a point has two different coordinate values, you will need two different coordinate system, isn't it? One of easiest ways to do this is making their origin point at different position, that is why setPos() exists.
  • Prevent unwanted line breaks for Korean text

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • [Solved]how to add "" into a QString?

    5
    0 Votes
    5 Posts
    2k Views
    P
    [quote author="Volker" date="1334581767"]Please edit your post if you want to correct mistakes, instead of posting it again. The edit linke is to the right of the post, just below your username and avatar.[/quote] thanks a lot, I will
  • Retrieving all input fields

    2
    0 Votes
    2 Posts
    1k Views
    A
    You cannot rely on the order that findChildren returns, so don't go there. I'd considder two approaches, that you can use in tandem: First, considder if it makes sense to wrap your row of combo - combo - lineedit - combo into a widget of it's own, and put that widget on the form ten times. If these belong together, the widget can optionally provide a nice, common API that you can directly use, but even if you don't you'll have the widgets that belong together grouped. You should simply manually build up a simple list of your widgets in your constructor. If you decide to use the approach above, that would be only ten widgets in one group, otherwise you probably end up with four groups of ten widgets. You can then simply iterate over this list when you need the values. Considder if you can't just create the widgets completely dynamically, from a simple loop in your constructor. That would make building the list trivial, and make it very easy to scale your form to have more or less of these rows when needed. I'm all for using Designer where it makes sense, but sometimes it just makes more sense to build up a (part of the) GUI from manually crafted code.
  • How to find the line that causes breaking my program

    6
    0 Votes
    6 Posts
    2k Views
    K
    [quote author="marachli" date="1334589405"]I put a break point at the that I suspect that it causes the breakdown then I pressed F5[/quote] Can you see somewhere the current call stack? This gives you typically the opportunity to check where the problem starts in your code even so the crash is in some standard libs. What is the environment and IDE you are using?
  • How can i save the content of QTextEdit to a file?

    5
    0 Votes
    5 Posts
    14k Views
    S
    You are welcome..!!! Please set the topic as [SOLVED].
  • How can i force QtConcurrent::run to use more than just one Core

    2
    0 Votes
    2 Posts
    4k Views
    K
    First point: there's no point in running more threads than you have number of cores (unless they're hyperthreaded like some Intel cores which will run 2 threads per core). If you try, all that will happen is that the threads get timesliced, and will probably run slower. As I understand it, QtConcurrent will check the number of cores you have and limit the number of parallel threads to that. Second point: you may have threads being blocked by other threads as they try and access some common resource. So although 6 threads are active, maybe 4 of them are in a wait state at any given time.
  • How can I change my output

    3
    0 Votes
    3 Posts
    1k Views
    F
    Got it. ui->label_Yields->setText(QString::number(yields, 'f', 8)); I actually tried this before but I was missing the quotes. Thank you for pushing me to reread the docs, believe me I'm getting better on trying to find info using the documentation. Thanks a lot for your help.
  • How to really save XML special chars to UTF-8

    4
    0 Votes
    4 Posts
    6k Views
    G
    Thanks for the bug report. Just as a side note: to format code in Jira just wrap it between two {code} tags.